/*!
\copyright  Copyright (c) 2019-2023 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\version    
\file       
\brief      Script to change primary address to secondary address when required in DFU version share.
*/

#ifdef INCLUDE_CROSS_VERSION_DFU
#include "script_engine.h"

#include "tws_topology_procedure_set_address.h"
#include "tws_topology_procedure_become_peripheral.h"

#define DFU_VERSION_BECOME_PERIPHERAL_SCRIPT(ENTRY) \
    ENTRY(proc_set_address_fns, PROC_SET_ADDRESS_TYPE_DATA_SECONDARY)

/* Define the secondary_role_script */
DEFINE_TOPOLOGY_SCRIPT(dfu_version_become_peripheral, DFU_VERSION_BECOME_PERIPHERAL_SCRIPT);
#endif //#ifdef INCLUDE_CROSS_VERSION_DFU